import request from '@/utils/request'


// 转接口
export function toolConvey (account_id,uri,param,method = 'get') {
  const params = {
    account_id:account_id,
    uri: uri,
    param: param,  // object
    method: method
  }
  if(!param.advertiser_id){  // 如果没有广告主账号，添加账户id
    param.advertiser_id = account_id
  }
  return request({
    url: process.env.VUE_APP_ADV_OCEAN_API +  '/admin/ocean/tool/forward',
    method:'post',
    data: params
  })
}

